import "package:get/get.dart";

import '../pages/Alarm/alarm_record/alarm_record.dart';
import '../pages/Alarm/history_alarm/history_alarm.dart';
import '../pages/Home/Home.dart';
import '../pages/Lift/lift_details/lift_details.dart';
import '../pages/Lift/lift_info/lift_info.dart';
import '../pages/Lift/lift_manage/lift_manage.dart';
import '../pages/Login/Login.dart';
import '../pages/Maintenance/details/details.dart';
import '../pages/Maintenance/plan/plan.dart';
import '../pages/Maintenance/record/record.dart';
import '../pages/Maintenance/today_todo/today_todo.dart';
import '../pages/Maintenance/todo_details/todo_details.dart';
import '../pages/Notice/notice.dart';
import '../pages/Repairs/repairs_details/repairs_details.dart';
import '../pages/Repairs/repairs_list/repairs_list.dart';
import '../pages/Update/Update.dart';
import '../pages/forgot_pwd/forgot_pwd.dart';
import "router.dart";

class AppComponents {
  static const INIT_PAGE = AppRoutes.Login;
  static final List<GetPage> router = [
    //-----
    GetPage(
      title: "登录",
      name: AppRoutes.Login,
      page: () => Login(),
    ),
    GetPage(
      title: "忘记密码",
      name: AppRoutes.ForgotPWD,
      page: () => ForgotPWD(),
    ),
    GetPage(
      title: "应用更新",
      name: AppRoutes.Update,
      page: () => Update(),
    ),
    GetPage(
      title: "首页",
      name: AppRoutes.Home,
      page: () => Home(),
    ),
    GetPage(
      title: "电梯管理",
      name: AppRoutes.LiftManage,
      page: () => LiftManage(),
    ),
    GetPage(
      title: "电梯详情",
      name: AppRoutes.LiftDetails,
      page: () => LiftDetails(),
    ),
    GetPage(
      title: "电梯信息",
      name: AppRoutes.LiftInfo,
      page: () => LiftInfo(),
    ),
    GetPage(
      title: "维保计划",
      name: AppRoutes.Plan,
      page: () => Plan(),
    ),
    GetPage(
      title: "维保记录",
      name: AppRoutes.Record,
      page: () => Record(),
    ),
    GetPage(
      title: "维保详情",
      name: AppRoutes.Details,
      page: () => Details(),
    ),
    GetPage(
      title: "今日待办",
      name: AppRoutes.ToDayTodo,
      page: () => ToDayTodo(),
    ),
    GetPage(
      title: "维保详情",
      name: AppRoutes.TodoDetails,
      page: () => TodoDetails(),
    ),
    GetPage(
      title: "通知",
      name: AppRoutes.Notice,
      page: () => Notice(),
    ),
    GetPage(
      title: "告警记录",
      name: AppRoutes.AlarmRecord,
      page: () => AlarmRecord(),
    ),
    GetPage(
      title: "历史告警记录",
      name: AppRoutes.HistoryAlarm,
      page: () => HistoryAlarm(),
    ),
    GetPage(
      title: "报修待办",
      name: AppRoutes.RepairsList,
      page: () => RepairsList(),
    ),
    GetPage(
      title: "报修详情",
      name: AppRoutes.RepairsDetails,
      page: () => RepairsDetails(),
    ),
  ];
}
